<template>
  <div>
    <el-row type="flex" justify="space-between">
      <el-col>
        <div>
          <!-- 占位符 -->
          <slot name="before" />
        </div>
      </el-col>
      <el-col>
        <el-row type="flex" justify="end" class="color">
          <slot name="after" />
          <input v-model="value" type="text" placeholder="请输入关键字" class="inputBtn">
          <el-button type="primary" plain @click="query">筛选</el-button>
        </el-row>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  data() {
    return {
      value: ''
    }
  },
  methods: {
    query() {
      console.log(this.value)
      this.$emit('query')
    }
  }
}
</script>

<style lang="scss" scoped>
.inputBtn{
        border: 1px solid #e6e8ed;
        border-radius: 5px;
        width: 30em;
        font-size: 14px;
        outline: none;
    }
</style>
